Skip to content

fix(Badge): use background style property instead of backgroundColor to support linear-gradient - #720

Open
sonusharma6-dsa wants to merge 1 commit into
Jaishree2310:mainfrom
sonusharma6-dsa:fix/badge-rainbow-gradient
Open

fix(Badge): use background style property instead of backgroundColor to support linear-gradient#720
sonusharma6-dsa wants to merge 1 commit into
Jaishree2310:mainfrom
sonusharma6-dsa:fix/badge-rainbow-gradient

Conversation

@sonusharma6-dsa

Copy link
Copy Markdown

Resolves #719

Description of changes

  • Changed the inline style in CustomBadge in src/components/badge.tsx to use the background CSS shorthand property instead of backgroundColor.
  • Updated the copied code preview to also output background instead of backgroundColor to ensure CSS gradient backgrounds (such as the rainbow theme) are correctly rendered by browsers.

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

@sonusharma6-dsa is attempting to deploy a commit to the jaishree2310's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Rainbow theme fails to render background gradient in CustomBadge component

1 participant